package com.ywu.dev.admin.spi.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @ClassName YwuServiceDetailInfoEntity
 * @Description TODO
 * @Author GroundDemo
 * @Date 2025/3/25 15:10
 * @Version 1.0
 **/
@Data
@ToString
public class YwuServiceDetailInfoEntity {
    private String name;

    private String value;

    private String status;

    private List<YwuServiceDetailInfoEntity> children;

    public void addChildren(List<YwuServiceDetailInfoEntity> children) {
        if (CollectionUtils.isEmpty(this.children)) {
            this.children = children;
        } else {
            this.children.addAll(children);
        }
    }
}
